package cn.txzhang.bookstores.modular.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("book_type")
public class BookTypeEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Integer code;
    private String name;
    @Version
    private Integer version = 0;
    private LocalDateTime createTime;
}
